import request from '@/utils/request'

//查询
export function typeList(data:any) {
	return request({
		url: '/case/type/list',
		method: 'get',
		params: data
	})
}

//新增
export function addType(data:any) {
	return request({
		url: '/case/type/add',
		method: 'post',
		data
	})
}

//修改
export function typeUpdate(data:any) {
	return request({
		url: '/case/type/update',
		method: 'post',
		data
	})
}

//删除
export function typeRemove(data:any) {
	return request({
		url: '/case/type/delete',
		method: 'DELETE',
		params: data
	})
}

// 上传封面
export function addimg(data:any) {
  return request({
    url: '/medicine/atlas/upload',
    method: 'POST',
    data,
  });
}


